﻿@model DingTalkAgent.Model.EffectivenesstLog
@{
    ViewBag.Title = "成效展示明细";
    Layout = "~/Areas/mobile/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm())
{
    <div>
        <div>
            <span>@Model.Title</span>
        </div>
        <div class="row-item">
            时间：<span>@Model.executeTime</span>
            成效单位：<span>@Model.orgName </span>
        </div>
        <div class="row-item">
            河源类型：<span>@ViewBag.riverType</span>
            河源段：<span>@ViewBag.rivermc</span>
        </div>
        <div>
            <img src="../../UpLoad/Logo/@Model.imgurl" />
        </div>
        <div>
            <p>@Html.Raw(Model.contentMsg)</p>
        </div>
        <div id="addgoodCount" style="width: 70px; height: 70px; background-color: #FF9900">
            <div align="center" style="margin-top: 10px;">
                <label style="color: White; font-size: 20pt;">
                    赞
                </label>
            </div>
            <div align="center">
                <label id="lbnum" style="color: White; font-size: 10pt;">
                    @Model.goodCount
                </label>
            </div>
        </div> 
        
        
    </div>
}
    <script type="text/javascript">
        $(function () {           
            $("#addgoodCount").click(function () {
                $.ajax({
                    type: 'POST',
                    url: 'AddGoodCount',
                    data: @Model.id,
                    success: function (data) {
                        $("#lbnum").text(data.Num);
                        //禁用，避免再次点赞
                    }
                });
            });
        });
    </script>

